const express=require('express');
const pool = require('../../pool.js');
const r=express.Router();

r.get('/cartshow',(req,res,next)=>{
    pool.query('select * from cart',(err,data)=>{
        if(err){next(err);return;}
        res.send({
            "code":1,
            "msg":"已查到所有数据",
            "data":data
        })
    })
})

module.exports=r;